//
// Created by wkm on 2023-12-11.
//

#include "ff_tb.h"

void ff_tb::test() {
    reset.write(1);
    wait();  // 等待时钟的正跳变沿
    wait();
    reset.write(0);
    data.write(1);
    wait();
    wait();
    data.write(0);
    wait();
    wait();
    data.write(1);
    wait();
    wait();
    data.write(0);
    wait();
    wait();
    data.write(1);
    wait();
    wait();
    data.write(1);
    wait();
    sc_stop();
}

void ff_tb::check() {
    cout << "Output data is (@ " << sc_time_stamp() << "):" << data_out.read() << endl;
}